package com.im.project.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
 * 私聊请求消息体
 *
 * @author yunZhouJiaDi
 */
@Data
@Accessors(chain = true)
public class SendMessageDto {

    @ApiModelProperty("幂等性id")
    @NotEmpty(message = "前端生成幂等性id不能为空")
    private String deduplicationId;

    @ApiModelProperty("发送者")
    @NotEmpty(message = "发送者不能为空")
    private String sendUserId;

    @ApiModelProperty("接受者")
    @NotEmpty(message = "接受者不能为空")
    private String contactId;

    @ApiModelProperty("消息类型")
    @NotEmpty(message = "消息类型不能为空")
    private String messageType;

    @ApiModelProperty("消息内容")
    @NotEmpty(message = "消息内容不能为空")
    private String messageContent;

    @ApiModelProperty("文件大小")
    private Long fileSize;

    @ApiModelProperty("文件名称")
    private String fileName;

    @ApiModelProperty("撤回消息id")
    private String withdrawId;

    @ApiModelProperty("回复消息id")
    private String replyId;

}
